package com.chenjian.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.chenjian.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author chenjian
 * @since 2020-04-13
 */
public interface UserMapper extends BaseMapper<User> {

    @Select(value = "SELECT id,user_name,age,email,manager_id,create_time,update_time,version FROM user ${ew.customSqlSegment}")
    List<User> getUsers(@Param(Constants.WRAPPER) Wrapper wrapper);

}
